/*
 * ShuttleBus.java
 */
package ITU_ShuttleTracker.User.ShuttleBus;

import ITU_ShuttleTracker.User.Location.Location;
import java.util.Calendar;

/**
 *
 * @author Onuralp
 */
public class ShuttleBus {
    private int shuttleID;
    private int shuttleNo;   
    private String information;
    private Location location; 
    private String picture;
    private boolean isOnTheService;

    /**
     * Constructor of ShuttleBus class
     */
    public ShuttleBus() {
        this.shuttleID = 0;
        this.shuttleNo = 0;
        this.information = "";
        this.location = new Location(0, 0);
        this.picture = "";
        Calendar now = Calendar.getInstance();
        if ((now.get(Calendar.HOUR_OF_DAY) > 8) && (now.get(Calendar.HOUR_OF_DAY) < 24)) {
            this.isOnTheService = true;
        }
        else {
            this.isOnTheService = false;
        }        
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public boolean isIsOnTheService() {
        return isOnTheService;
    }

    public void setIsOnTheService(boolean isOnTheService) {
        this.isOnTheService = isOnTheService;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getShuttleID() {
        return shuttleID;
    }

    public void setShuttleID(int shuttleID) {
        this.shuttleID = shuttleID;
    }

    public int getShuttleNo() {
        return shuttleNo;
    }

    public void setShuttleNo(int shuttleNo) {
        this.shuttleNo = shuttleNo;
    }
}
